package org.lt.resume.controller.subcompany;

import org.lt.resume.domain.company.SubCompanyInfo;
import org.lt.resume.service.subcompanyserviceInterface.SubCompanyServiceInterface;

import com.opensymphony.xwork2.ActionSupport;

public class RegisterSubcompany extends ActionSupport{

    /** **/
	private static final long serialVersionUID = 918669102393275053L;

	private String name;
    
    private String address;
    
    private String memo;

    private SubCompanyInfo subcompany = new SubCompanyInfo();
    
    private SubCompanyServiceInterface subCompanyService; 
    
	@Override
	public String execute() throws Exception {
		System.out.println(subcompany.getName());
		System.out.println(subcompany.getAddress());
		System.out.println(subcompany.getMemo());
		subCompanyService.addSubCompanyInfo(subcompany);
		return null;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		subcompany.setName(name);
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		subcompany.setAddress(address);
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		subcompany.setMemo(memo);
	}

	public SubCompanyInfo getSubcompany() {
		return subcompany;
	}

	public void setSubcompany(SubCompanyInfo subcompany) {
		this.subcompany = subcompany;
	}

	public SubCompanyServiceInterface getSubCompanyService() {
		return subCompanyService;
	}

	public void setSubCompanyService(SubCompanyServiceInterface subCompanyService) {
		this.subCompanyService = subCompanyService;
	}

	
}
